import java.util.*;

class Solution {
    public int[][] findContinuousSequence(int target) {
        if (target < 3) return null;
        List<int[]> res = new ArrayList<>();
        int left = 1;
        int right = 2;
        int sum = left + right;
        while (left <= (target >> 1) && left < right) {
            if (sum > target) {
                sum -= left++;
            } else if (sum < target) {
                sum += ++right;
            } else {
                int[] arr = new int[right - left + 1];
                final int finalLeft = left;
                Arrays.setAll(arr, operand -> finalLeft + operand);
                sum += ++right;
                res.add(arr);
            }
        }
        int[][] resArr = new int[res.size()][];
        for (int i = 0; i < resArr.length; i++) resArr[i] = res.get(i);
        return resArr;
    }

    public static void main(String[] args) {
        Solution s = new Solution();
        System.out.println(Arrays.deepToString(s.findContinuousSequence(15)));
    }
}